<a href="index.php?page=add_weapon&&action=gcash">G-Cash</a><br>
<a href="index.php?page=add_weapon&&action=point">Point</a><br>
<?php
if(isset($_REQUEST['action'])){
	if($_REQUEST['action'] == 'gcash'){
?>
<form action="proses_add_weapon.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Weapon G-Cash</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Cattegory</td>
      <td>:</td>
      <td><label for="cattegory"></label>
        <select name="cattegory" id="cattegory">
          <option value="riffle">Riffle</option>
          <option value="smg">SMG</option>
          <option value="awp">Sniper</option>
          <option value="shotgun">Shotgun</option>
          <option value="machinegun">Machine Gun</option>
          <option value="Handgun">Hand Gun</option>
          <option value="melee">Melee</option>
          <option value="explosive">Explosive</option>
          <option value="special">Special</option>
      </select></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">1 Day : 
          <input name="one_day" type="text" id="one_day" size="6" maxlength="6">
          <br>
      3 Day : 
          <input name="three_day" type="text" id="three_day" size="6" maxlength="6">
          <br>
          7 Day :
          <input name="seven_day" type="text" id="seven_day" size="6" maxlength="6">
          <br>
          30 Day :
          <input name="thirty_day" type="text" id="thirty_day" size="6" maxlength="6">
      </label></td>
    </tr>
    <tr>
      <td>Damage</td>
      <td>:</td>
      <td><label for="damage"></label>
      <input type="text" name="damage" id="damage" /></td>
    </tr>
    <tr>
      <td>Fire Speed</td>
      <td>:</td>
      <td><label for="fire_speed"></label>
      <input type="text" name="fire_speed" id="fire_speed" /></td>
    </tr>
    <tr>
      <td>Accuracy</td>
      <td>:</td>
      <td><label for="accuracy"></label>
      <input type="text" name="accuracy" id="accuracy" /></td>
    </tr>
    <tr>
      <td>Ammo</td>
      <td>:</td>
      <td><label for="ammo_1"></label>
      <input name="ammo_1" type="text" id="ammo_1" size="2" maxlength="2" /> 
      / 
      <input name="ammo_2" type="text" id="ammo_2" size="3" maxlength="3" /></td>
    </tr>
    <tr>
      <td>V. Recoil</td>
      <td>:</td>
      <td><label for="v_recoil"></label>
      <input type="text" name="v_recoil" id="v_recoil" /></td>
    </tr>
    <tr>
      <td>H. Recoil</td>
      <td>:</td>
      <td><label for="h_recoil"></label>
      <input type="text" name="h_recoil" id="h_recoil" /></td>
    </tr>
    <tr>
      <td>Move Speed</td>
      <td>:</td>
      <td><label for="move_speed"></label>
      <input type="text" name="move_speed" id="move_speed" /></td>
    </tr>
    <tr>
      <td>Range</td>
      <td>:</td>
      <td><label for="ranger"></label>
      <input type="text" name="ranger" id="ranger" /></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
      <input name="tipe" type="hidden" id="tipe" value="<?php if($_REQUEST['action'] == 'gcash'){ echo"gcash";	}else{ header("location:index.php?page=add_weapon");
			}
		?>">
      <input type="hidden" name="point_unit" id="point_unit">
      <input type="hidden" name="point_price" id="point_price"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
<?php
	}elseif($_REQUEST['action'] == 'point'){
?>
<form action="proses_add_weapon.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Weapon Point</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Item Name</td>
      <td>:</td>
      <td><label for="item_name"></label>
      <input type="text" name="item_name" id="item_name" /></td>
    </tr>
    <tr>
      <td>Cattegory</td>
      <td>:</td>
      <td><label for="cattegory"></label>
        <select name="cattegory" id="cattegory">
          <option value="riffle">Riffle</option>
          <option value="smg">SMG</option>
          <option value="awp">Sniper</option>
          <option value="shotgun">Shotgun</option>
          <option value="machinegun">Machine Gun</option>
          <option value="Handgun">Hand Gun</option>
          <option value="melee">Melee</option>
          <option value="explosive">Explosive</option>
          <option value="special">Special</option>
      </select></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="Hot">Hot</option>
          <option value="New">New</option>
          <option value="Regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp"></label>
        <label for="damage">
          <input name="point_unit" type="text" id="point_unit" size="3" maxlength="3">
        Unit : 
        <input name="point_price" type="text" id="point_price" size="6" maxlength="6">
        Point        </label></td>
    </tr>
    <tr>
      <td>Damage</td>
      <td>:</td>
      <td><label for="damage"></label>
      <input type="text" name="damage" id="damage" /></td>
    </tr>
    <tr>
      <td>Fire Speed</td>
      <td>:</td>
      <td><label for="fire_speed"></label>
      <input type="text" name="fire_speed" id="fire_speed" /></td>
    </tr>
    <tr>
      <td>Accuracy</td>
      <td>:</td>
      <td><label for="accuracy"></label>
      <input type="text" name="accuracy" id="accuracy" /></td>
    </tr>
    <tr>
      <td>Ammo</td>
      <td>:</td>
      <td><label for="ammo_1"></label>
      <input name="ammo_1" type="text" id="ammo_1" size="2" maxlength="2" /> 
      / 
      <input name="ammo_2" type="text" id="ammo_2" size="3" maxlength="3" /></td>
    </tr>
    <tr>
      <td>V. Recoil</td>
      <td>:</td>
      <td><label for="v_recoil"></label>
      <input type="text" name="v_recoil" id="v_recoil" /></td>
    </tr>
    <tr>
      <td>H. Recoil</td>
      <td>:</td>
      <td><label for="h_recoil"></label>
      <input type="text" name="h_recoil" id="h_recoil" /></td>
    </tr>
    <tr>
      <td>Move Speed</td>
      <td>:</td>
      <td><label for="move_speed"></label>
      <input type="text" name="move_speed" id="move_speed" /></td>
    </tr>
    <tr>
      <td>Range</td>
      <td>:</td>
      <td><label for="ranger"></label>
      <input type="text" name="ranger" id="ranger" /></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
      <input name="tipe" type="hidden" id="tipe" value="<?php if($_REQUEST['action'] == 'point'){echo"point";}else{header("location:index.php?page=add_weapon"); }?>">
      <input type="hidden" name="one_day" id="one_day">
      <input type="hidden" name="three_day" id="three_day">
      <input type="hidden" name="seven_day" id="seven_day">
      <input type="hidden" name="thirty_day" id="thirty_day"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
<?php
	}else{
		echo"&nbsp;";	
	}
}
?>
  </table>
</form>